import httplib2

from django.utils import simplejson

def check_link(request, link = ''):
    client =  httplib2.Http()

    r = client.request(uri = link, method = 'HEAD')

    return simplejson.dumps({'data': { 'status': r }})
